package com.kaiji.service.impl;

import com.kaiji.dao.UserDao;
import com.kaiji.entity.UserEntity;
import com.kaiji.service.UserService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional
public class UserServiceImpl implements UserService {

    @Resource
    private UserDao userDao;

    public void save(UserEntity userEntity) {
        userDao.save(userEntity);
    }

    public List<UserEntity> getList() {
        return userDao.getList();
    }
}
